import request from '@/utils/request'

// 查询客户预录单列表
export function listPresco(query) {
  return request({
    url: '/order/presco/list',
    method: 'get',
    params: query
  })
}

// 查询客户预录单详细
export function getPresco(id) {
  return request({
    url: '/order/presco/' + id,
    method: 'get'
  })
}

// 修改客户预录单
export function updatePresco(data) {
  return request({
    url: '/order/presco',
    method: 'put',
    data: data
  })
}

// 删除客户预录单
export function delPresco(id) {
  return request({
    url: '/order/presco/' + id,
    method: 'delete'
  })
}
